Big Book of R has over 200 books! {https://t.co/uIeAiWl5Gr} #rstats #DataScience
— R-bloggers (@Rbloggers) June 5, 2021
I’ve co-authored a book! Twitter for R Programmers {https://t.co/GwpQfhrt7V} #rstats #DataScience
— R-bloggers (@Rbloggers) June 7, 2021
DTPlyr – easier data.table for DPLYR users {https://t.co/GaoJf1V6iE} #rstats #DataScience
— R-bloggers (@Rbloggers) June 8, 2021
Kruskal Wallis test in R-One-way ANOVA Alternative {https://t.co/R0tIy5FDgt} #rstats #DataScience
— R-bloggers (@Rbloggers) June 6, 2021
A real-world, messy dataset to practice on {https://t.co/T2AWhEPU0E} #rstats #DataScience
— R-bloggers (@Rbloggers) June 6, 2021
Hierarchical forecasting of hospital admissions {https://t.co/D8q0UJhvy3} #rstats #DataScience
— R-bloggers (@Rbloggers) June 4, 2021
Splitting Linear Models {https://t.co/2X1X0Xel1C} #rstats #DataScience
— R-bloggers (@Rbloggers) June 6, 2021
Converting Lists of Lists of Lists to Data.Frames (or Tibbles) {https://t.co/zMQuZ1womh} #rstats #DataScience
— R-bloggers (@Rbloggers) June 7, 2021
Kurtosis in R-What do you understand by Kurtosis? {https://t.co/O4jkM1YJ7X} #rstats #DataScience
— R-bloggers (@Rbloggers) June 8, 2021
A roadmap for getting started with R {https://t.co/DvnC0Oy4dJ} #rstats #DataScience
— R-bloggers (@Rbloggers) June 7, 2021
Error Bar Plot in R-Adding Error Bars-Quick Guide {https://t.co/Tx04LD2waD} #rstats #DataScience
— R-bloggers (@Rbloggers) June 9, 2021
Hybrid machine learning forecasts for the UEFA Euro 2020 {https://t.co/dBsOq67dsg} #rstats #DataScience
— R-bloggers (@Rbloggers) June 7, 2021
Big Book of R has over 200 books! {https://t.co/uIeAiWl5Gr} #rstats #DataScience
— R-bloggers (@Rbloggers) June 5, 2021
Sentiment analysis in R {https://t.co/HoyxGDHj7J} #rstats #DataScience
— R-bloggers (@Rbloggers) May 16, 2021
Visualization Graphs-ggside with ggplot {https://t.co/kRY5wVY2VN} #rstats #DataScience
— R-bloggers (@Rbloggers) May 12, 2021
Text Analysis with R {https://t.co/Bn4k0cwfhj} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2021
How to find dataset differences in R Quickly Compare Datasets {https://t.co/tU2Bjh416q} #rstats #DataScience
— R-bloggers (@Rbloggers) May 25, 2021
GitHub With R {https://t.co/ZC5n2jnMAO} #rstats #DataScience
— R-bloggers (@Rbloggers) May 16, 2021
Build and improve a Machine Learning Classification model with TidyModels and R {https://t.co/lNBLmSpyHm} #rstats #DataScience
— R-bloggers (@Rbloggers) May 25, 2021
New features in R 4.1.0 {https://t.co/wmYN0OHixh} #rstats #DataScience
— R-bloggers (@Rbloggers) May 18, 2021
Awesome R Markdown Word report with programmatically inserted headings, outputs and… {https://t.co/5azjRGpeUv} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2021
Animated Graph GIF with gganimate & ggplot {https://t.co/MBYEaTYied} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2021
ggplot: the placing and order of aesthetics matters {https://t.co/Aeob9IPyTx} #rstats #DataScience
— R-bloggers (@Rbloggers) May 16, 2021
Relational data models in R {https://t.co/Bwt46eDKsO} #rstats #DataScience
— R-bloggers (@Rbloggers) May 20, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```